package com.fintech.third.dao;

import com.dragon.common.repository.mybatis.MyBatisRepository;
import com.fintech.user.entity.RealNameAuthentication;
import org.apache.ibatis.annotations.Param;
@MyBatisRepository
public interface RealNameAuthenticationMapper {
    

    int insertSelective(RealNameAuthentication record);

    RealNameAuthentication selectByUserId(Integer userId);
    
    RealNameAuthentication querByIdentiyCardNo(String identiyCardNo);

    void deleteById(Integer id);
    
    void updateByPrimaryKeySelective(RealNameAuthentication record);
    /**
	 * 查询用户是否为存量用户
	 * @param selectType 查询方式
	 * @param phone
	 * @param cid
	 * @param name
	 * @return
	 */
	public Integer queryStockUser(@Param("selectType")String selectType,
			@Param("phone")String phone,
			@Param("cid")String cid,
			@Param("name")String name);
	
	public String queryCidByNameAndCid12(
			@Param("cid")String cid,
			@Param("name")String name);

	
}